package cn.java75.sp.dao;

import cn.java75.sp.entity.*;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
@Cacheable//(key="student")
@CacheConfig(cacheNames = "grade")
public interface GradeDao {
    public Grade get(long id);
    public Grade get2(long id);
    @Cacheable
    public List<Grade> findALL();
}
